import { SYS_LOCAL_DIC } from '@/util/SYS_LOCAL_DIC'

export default {
  card: true,
  disabled: true,
  border: true,
  index: true,
  addBtn: true,
  excelBtn:true,
  title:'系统菜单表',//表格的标题
  stripe: false,
  selection: true,
  // customClass: '',自定义弹出框样式
  menuBtn: true,
  // menuWidth: 100,
  menuAlign: 'center',
  align: 'center',
  searchSize: 'small',
  dicData: SYS_LOCAL_DIC,
  column: [
    {
      label: "父级节点",
      prop: "parentId",
      width: 200,
      align: "left",
      disabled:true,
      solt: true,
      placeholder: '请输入菜单名字',
      rules: [{ required: true, message: "请输入菜单名字", trigger: "blur" }],
    },
    {
      label: "是否显示",
      prop: "isShow",
      width: 80,
      type: "select",
      valueDefault: 1,
      dicData: SYS_LOCAL_DIC.MENU_SHOW_FLAG
    },
    {
      label: "菜单名字",
      prop: "menuName",
      width: 200,
      align: "left",
      solt: true,
      placeholder: '请输入菜单名字',
      rules: [{ required: true, message: "请输入菜单名字", trigger: "blur" }],
    },
    {
      label: "菜单类型",
      prop: "menuType",
      width: 80,
      type: "select",
      valueDefault: '2',
      dicData: SYS_LOCAL_DIC.MENU_TYPE
    },
    {
      label: "权限标识",
      prop: "permission",
      align: "left",
      width: 200,
      placeholder: '请输入权限标识',
      rules: [{ required: true, message: "请输入权限标识", trigger: "blur" }],
    },
    {
      label: "菜单路径",
      prop: "path",
      align: "left",
      width: 200,
      placeholder: '请输入菜单路径',
      rules: [{ required: true, message: "请输入菜单路径", trigger: "blur" }],
    },
    {
      label: "菜单组件",
      prop: "component",
      align: "left",
      placeholder: '请输入菜单组件',
      rules: [{ required: true, message: "请输入菜单组件", trigger: "blur" }],
    },
    {
      label: "图标",
      prop: "icon",
      width: 65,
      type: 'icon-select',
      iconList: [{
        label: '基本图标',
        list: ['el-icon-info', 'el-icon-error', 'el-icon-error', 'el-icon-success', 'el-icon-warning', 'el-icon-question']
      }, {
        label: '方向图标',
        list: ['el-icon-info', 'el-icon-back', 'el-icon-arrow-left', 'el-icon-arrow-down', 'el-icon-arrow-right', 'el-icon-arrow-up']
      }, {
        label: '符号图标',
        list: ['el-icon-plus', 'el-icon-minus', 'el-icon-close', 'el-icon-check']
      },{
        label: 'AVueX图标',
        list: ['icon-xitongguanli', 'icon-mima', 'icon-daohanglan_moshi', 'icon-caidan', 'icon-suoping', 'icon-yonghu','icon-rizhi','icon-weixin','icon-qq','icon-tubiao','icon-biaoge','icon-wxbgongju',
        'icon-all','icon-libra','icon-hot','icon-ship'
        ]
      }],
      slot: true
    },
    {
      label: "翻译Meta",
      width: 90,
      prop: "meta"
    },
    {
      label: "菜单顺序",
      width: 90,
      prop: "sortNo"
    },
    {
      label: "按钮字典",
      width: 90,
      prop: "btnDic"
    }
  ]
};
